package com.graduation.community_manager.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.graduation.community_manager.entity.CmUserEntity;
import com.graduation.community_manager.vo.PageCmUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 用户表
 * 
 * @author wdh
 */
@Mapper
public interface CmUserDao extends BaseMapper<CmUserEntity> {

//    @Select({"<script>",
//            "select * from cm_user where user_name like concat('%', #{vo.userName}, '%') " +
//            "<if test='vo.startTime != null and vo.endTime != null'> and create_time between #{vo.startTime} and #{vo.endTime} </if>" +
//            "order by id limit #{vo.current}, #{vo.size}"+
//            "</script>"})
//    IPage<CmUserEntity> getPage(@Param("vo") PageCmUserVO vo);
}
